const ADDPARK = 'ADDPARK'
const SEARCHPARK='SEARCHPARK'
const DELPARK='DELPARK'
const MODIFYPARK = 'MODIFYPARK'
const ADDBANK = 'ADDBANK'
const SEARCHBANK = 'SEARCHBANK'
const DELBANK = 'DELBANK'
const MODIFYBANK = 'MODIFYBANK'
// park
export const createAddParkAction = (data)=>{
    return {'type':ADDPARK,data}
}
export const createSearchParkAction = (data)=>{
    return { 'type': SEARCHPARK,data}
}
export const createDelParkAction = (data)=>{
    return { 'type':DELPARK,data}
}
export const createModifyParkAction = (data)=>{
    return { 'type':MODIFYPARK,data}
}

//bank
export const createAddBankAction = (data)=>{
    return { 'type': ADDBANK,data}
}
export const createSearchBankAction = (data)=>{
    return { 'type': SEARCHBANK,data}
}
export const createDelBankAction = (data)=>{
    return { 'type': DELBANK,data}
}
export const createModifyBankAction = (data)=>{
    return { 'type': MODIFYBANK,data}
}

// lzm
const GETCOMMESS = 'GETCOMMESS'
const GETCORPAGE = 'GETCORPAGE'
const AMENDPAGE = 'AMENDPAGE'
export const getcommess = (num) => {
    return {
        'type': GETCOMMESS, num
    }
}
export const getcorpage = (num) => {
    return {
        'type': GETCORPAGE, num
    }
}
export const amendpage = (num) => {
    return {
        'type': AMENDPAGE, num
    }
}
// zw
const CHANGEPAGE = 'CHANGEPAGE'
const CHANGEPAGESIZE = 'CHANGEPAGESIZE'
const ADDSTANDARDDATA = 'ADDSTANDARDDATA'
const EDITSTANDARDDATA = 'EDITSTANDARDDATA'
const ENABLE = 'ENABLE'
const DISABLE = 'DISABLE'
const DELETEF = 'DELETEF'
const QUERY ='QUERY'
export const changePage = (p) => {
    //console.log("changePage");
    return { 'type': CHANGEPAGE, p }
}
export const changepagesize = (pz) => {
    //console.log('changepagesize');
    return { 'type': CHANGEPAGESIZE, pz }
}
export const addstandarddata = (obj) => {
    //console.log('addstandarddata');
   
    return { 'type': ADDSTANDARDDATA, obj }
}
export const editstandarddata = (arr) => {
    //console.log('editstandarddata');
    return { 'type': EDITSTANDARDDATA, arr }
}
export const Enable = (Earr) => {
    //console.log(Earr);
    return { 'type': ENABLE, Earr }
}

export const Disable = (Darr) => {
    // console.log('Enable');
    // console.log(Darr);
    return { 'type': DISABLE, Darr }
}
export const deletef = (a) => {
    console.log(a);
    return { 'type': DELETEF, a }
}
export const query = (q) => {
    return { 'type': QUERY, q }
}